﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WinformToolkit;
using WinformToolkit.Navigations;

namespace WinformToolkitDemo.UserControls
{
    public partial class DemoUserControl : UserControl, IContentControl
    {
        private static log4net.ILog logger = log4net.LogManager.GetLogger("DemoUserControl");

        private bool embedded;

        public DemoUserControl()
        {
            InitializeComponent();
        }

        //public override void OnInitialize()
        //{
        //    logger.InfoFormat("Content1 OnInitialize");
        //}

        //public override void OnLoaded()
        //{
        //    logger.InfoFormat("Content1 OnLoaded");

        //    if (!this.embedded)
        //    {
        //        applicationContainer1.EmbedProcess("mspaint.exe");
        //        this.embedded = true;
        //    }
        //}

        //public override void OnUnload()
        //{
        //    logger.InfoFormat("Content1 OnUnload");
        //}

        //protected override void OnLoad(EventArgs e)
        //{
        //    base.OnLoad(e);
        //}
    }
}
